﻿using UnityEngine;
using System.Collections;

public class Item : MonoBehaviour {
    public Texture Image;   //Imagen que se va a mostrar en el inventario.
    public TypeOfItem type; //Tipo de item.
    public AudioClip Sound; //Sonido al usar.
    public enum TypeOfItem {
        Gun,
        Consumible,
        Equipable,
		DefaultGun
    }
    public virtual int Use(Vector3 pos) {
        AudioSource.PlayClipAtPoint(Sound, pos);
        return 0;
    }
}
